3.941 \(\int \frac{x^2 \sqrt{a+b x^2}}{\sqrt{c+d x^2}} \, dx\)

Optimal. Leaf size=259 \[ -\frac{c^{3/2} \sqrt{a+b x^2} F\left (\tan ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c}}\right )|1-\frac{b c}{a d}\right )}{3 d^{3/2} \sqrt{c+d x^2} \sqrt{\frac{c \left (a+b x^2\right )}{a \left (c+d x^2\right )}}}+\frac{\sqrt{c} \sqrt{a+b x^2} (2 b c-a d) E\left (\tan ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c}}\right )|1-\frac{b c}{a d}\right )}{3 b d^{3/2} \sqrt{c+d x^2} \sqrt{\frac{c \left (a+b x^2\right )}{a \left (c+d x^2\right )}}}+\frac{x \sqrt{a+b x^2} \sqrt{c+d x^2}}{3 d}-\frac{x \sqrt{a+b x^2} (2 b c-a d)}{3 b d \sqrt{c+d x^2}} \]

[Out]

-((2*b*c - a*d)*x*Sqrt[a + b*x^2])/(3*b*d*Sqrt[c + d*x^2]) + (x*Sqrt[a + b*x^2]*
Sqrt[c + d*x^2])/(3*d) + (Sqrt[c]*(2*b*c - a*d)*Sqrt[a + b*x^2]*EllipticE[ArcTan
[(Sqrt[d]*x)/Sqrt[c]], 1 - (b*c)/(a*d)])/(3*b*d^(3/2)*Sqrt[(c*(a + b*x^2))/(a*(c
 + d*x^2))]*Sqrt[c + d*x^2]) - (c^(3/2)*Sqrt[a + b*x^2]*EllipticF[ArcTan[(Sqrt[d
]*x)/Sqrt[c]], 1 - (b*c)/(a*d)])/(3*d^(3/2)*Sqrt[(c*(a + b*x^2))/(a*(c + d*x^2))
]*Sqrt[c + d*x^2])

_______________________________________________________________________________________

Rubi [A]  time = 0.495099, antiderivative size = 259, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.192 \[ -\frac{c^{3/2} \sqrt{a+b x^2} F\left (\tan ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c}}\right )|1-\frac{b c}{a d}\right )}{3 d^{3/2} \sqrt{c+d x^2} \sqrt{\frac{c \left (a+b x^2\right )}{a \left (c+d x^2\right )}}}+\frac{\sqrt{c} \sqrt{a+b x^2} (2 b c-a d) E\left (\tan ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c}}\right )|1-\frac{b c}{a d}\right )}{3 b d^{3/2} \sqrt{c+d x^2} \sqrt{\frac{c \left (a+b x^2\right )}{a \left (c+d x^2\right )}}}+\frac{x \sqrt{a+b x^2} \sqrt{c+d x^2}}{3 d}-\frac{x \sqrt{a+b x^2} (2 b c-a d)}{3 b d \sqrt{c+d x^2}} \]

Antiderivative was successfully verified.

[In]  Int[(x^2*Sqrt[a + b*x^2])/Sqrt[c + d*x^2],x]

[Out]

-((2*b*c - a*d)*x*Sqrt[a + b*x^2])/(3*b*d*Sqrt[c + d*x^2]) + (x*Sqrt[a + b*x^2]*
Sqrt[c + d*x^2])/(3*d) + (Sqrt[c]*(2*b*c - a*d)*Sqrt[a + b*x^2]*EllipticE[ArcTan
[(Sqrt[d]*x)/Sqrt[c]], 1 - (b*c)/(a*d)])/(3*b*d^(3/2)*Sqrt[(c*(a + b*x^2))/(a*(c
 + d*x^2))]*Sqrt[c + d*x^2]) - (c^(3/2)*Sqrt[a + b*x^2]*EllipticF[ArcTan[(Sqrt[d
]*x)/Sqrt[c]], 1 - (b*c)/(a*d)])/(3*d^(3/2)*Sqrt[(c*(a + b*x^2))/(a*(c + d*x^2))
]*Sqrt[c + d*x^2])

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 63.0175, size = 219, normalized size = 0.85 \[ - \frac{c^{\frac{3}{2}} \sqrt{a + b x^{2}} F\left (\operatorname{atan}{\left (\frac{\sqrt{d} x}{\sqrt{c}} \right )}\middle | 1 - \frac{b c}{a d}\right )}{3 d^{\frac{3}{2}} \sqrt{\frac{c \left (a + b x^{2}\right )}{a \left (c + d x^{2}\right )}} \sqrt{c + d x^{2}}} + \frac{x \sqrt{a + b x^{2}} \sqrt{c + d x^{2}}}{3 d} - \frac{\sqrt{c} \sqrt{a + b x^{2}} \left (a d - 2 b c\right ) E\left (\operatorname{atan}{\left (\frac{\sqrt{d} x}{\sqrt{c}} \right )}\middle | 1 - \frac{b c}{a d}\right )}{3 b d^{\frac{3}{2}} \sqrt{\frac{c \left (a + b x^{2}\right )}{a \left (c + d x^{2}\right )}} \sqrt{c + d x^{2}}} + \frac{x \sqrt{a + b x^{2}} \left (a d - 2 b c\right )}{3 b d \sqrt{c + d x^{2}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(x**2*(b*x**2+a)**(1/2)/(d*x**2+c)**(1/2),x)

[Out]

-c**(3/2)*sqrt(a + b*x**2)*elliptic_f(atan(sqrt(d)*x/sqrt(c)), 1 - b*c/(a*d))/(3
*d**(3/2)*sqrt(c*(a + b*x**2)/(a*(c + d*x**2)))*sqrt(c + d*x**2)) + x*sqrt(a + b
*x**2)*sqrt(c + d*x**2)/(3*d) - sqrt(c)*sqrt(a + b*x**2)*(a*d - 2*b*c)*elliptic_
e(atan(sqrt(d)*x/sqrt(c)), 1 - b*c/(a*d))/(3*b*d**(3/2)*sqrt(c*(a + b*x**2)/(a*(
c + d*x**2)))*sqrt(c + d*x**2)) + x*sqrt(a + b*x**2)*(a*d - 2*b*c)/(3*b*d*sqrt(c
 + d*x**2))

_______________________________________________________________________________________

Mathematica [C]  time = 0.439861, size = 199, normalized size = 0.77 \[ \frac{d x \sqrt{\frac{b}{a}} \left (a+b x^2\right ) \left (c+d x^2\right )+2 i c \sqrt{\frac{b x^2}{a}+1} \sqrt{\frac{d x^2}{c}+1} (a d-b c) F\left (i \sinh ^{-1}\left (\sqrt{\frac{b}{a}} x\right )|\frac{a d}{b c}\right )-i c \sqrt{\frac{b x^2}{a}+1} \sqrt{\frac{d x^2}{c}+1} (a d-2 b c) E\left (i \sinh ^{-1}\left (\sqrt{\frac{b}{a}} x\right )|\frac{a d}{b c}\right )}{3 d^2 \sqrt{\frac{b}{a}} \sqrt{a+b x^2} \sqrt{c+d x^2}} \]

Antiderivative was successfully verified.

[In]  Integrate[(x^2*Sqrt[a + b*x^2])/Sqrt[c + d*x^2],x]

[Out]

(Sqrt[b/a]*d*x*(a + b*x^2)*(c + d*x^2) - I*c*(-2*b*c + a*d)*Sqrt[1 + (b*x^2)/a]*
Sqrt[1 + (d*x^2)/c]*EllipticE[I*ArcSinh[Sqrt[b/a]*x], (a*d)/(b*c)] + (2*I)*c*(-(
b*c) + a*d)*Sqrt[1 + (b*x^2)/a]*Sqrt[1 + (d*x^2)/c]*EllipticF[I*ArcSinh[Sqrt[b/a
]*x], (a*d)/(b*c)])/(3*Sqrt[b/a]*d^2*Sqrt[a + b*x^2]*Sqrt[c + d*x^2])

_______________________________________________________________________________________

Maple [A]  time = 0.025, size = 335, normalized size = 1.3 \[ -{\frac{1}{ \left ( 3\,bd{x}^{4}+3\,ad{x}^{2}+3\,c{x}^{2}b+3\,ac \right ){d}^{2}}\sqrt{b{x}^{2}+a}\sqrt{d{x}^{2}+c} \left ( -\sqrt{-{\frac{b}{a}}}{x}^{5}b{d}^{2}-\sqrt{-{\frac{b}{a}}}{x}^{3}a{d}^{2}-\sqrt{-{\frac{b}{a}}}{x}^{3}bcd+2\,ac\sqrt{{\frac{b{x}^{2}+a}{a}}}\sqrt{{\frac{d{x}^{2}+c}{c}}}{\it EllipticF} \left ( x\sqrt{-{\frac{b}{a}}},\sqrt{{\frac{ad}{bc}}} \right ) d-2\,\sqrt{{\frac{b{x}^{2}+a}{a}}}\sqrt{{\frac{d{x}^{2}+c}{c}}}{\it EllipticF} \left ( x\sqrt{-{\frac{b}{a}}},\sqrt{{\frac{ad}{bc}}} \right ) b{c}^{2}-\sqrt{{\frac{b{x}^{2}+a}{a}}}\sqrt{{\frac{d{x}^{2}+c}{c}}}{\it EllipticE} \left ( x\sqrt{-{\frac{b}{a}}},\sqrt{{\frac{ad}{bc}}} \right ) acd+2\,\sqrt{{\frac{b{x}^{2}+a}{a}}}\sqrt{{\frac{d{x}^{2}+c}{c}}}{\it EllipticE} \left ( x\sqrt{-{\frac{b}{a}}},\sqrt{{\frac{ad}{bc}}} \right ) b{c}^{2}-\sqrt{-{\frac{b}{a}}}xacd \right ){\frac{1}{\sqrt{-{\frac{b}{a}}}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(x^2*(b*x^2+a)^(1/2)/(d*x^2+c)^(1/2),x)

[Out]

-1/3*(b*x^2+a)^(1/2)*(d*x^2+c)^(1/2)*(-(-b/a)^(1/2)*x^5*b*d^2-(-b/a)^(1/2)*x^3*a
*d^2-(-b/a)^(1/2)*x^3*b*c*d+2*a*c*((b*x^2+a)/a)^(1/2)*((d*x^2+c)/c)^(1/2)*Ellipt
icF(x*(-b/a)^(1/2),(a*d/b/c)^(1/2))*d-2*((b*x^2+a)/a)^(1/2)*((d*x^2+c)/c)^(1/2)*
EllipticF(x*(-b/a)^(1/2),(a*d/b/c)^(1/2))*b*c^2-((b*x^2+a)/a)^(1/2)*((d*x^2+c)/c
)^(1/2)*EllipticE(x*(-b/a)^(1/2),(a*d/b/c)^(1/2))*a*c*d+2*((b*x^2+a)/a)^(1/2)*((
d*x^2+c)/c)^(1/2)*EllipticE(x*(-b/a)^(1/2),(a*d/b/c)^(1/2))*b*c^2-(-b/a)^(1/2)*x
*a*c*d)/(b*d*x^4+a*d*x^2+b*c*x^2+a*c)/d^2/(-b/a)^(1/2)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{b x^{2} + a} x^{2}}{\sqrt{d x^{2} + c}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(b*x^2 + a)*x^2/sqrt(d*x^2 + c),x, algorithm="maxima")

[Out]

integrate(sqrt(b*x^2 + a)*x^2/sqrt(d*x^2 + c), x)

_______________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{\sqrt{b x^{2} + a} x^{2}}{\sqrt{d x^{2} + c}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(b*x^2 + a)*x^2/sqrt(d*x^2 + c),x, algorithm="fricas")

[Out]

integral(sqrt(b*x^2 + a)*x^2/sqrt(d*x^2 + c), x)

_______________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{x^{2} \sqrt{a + b x^{2}}}{\sqrt{c + d x^{2}}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(x**2*(b*x**2+a)**(1/2)/(d*x**2+c)**(1/2),x)

[Out]

Integral(x**2*sqrt(a + b*x**2)/sqrt(c + d*x**2), x)

_______________________________________________________________________________________

GIAC/XCAS [F]  time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{b x^{2} + a} x^{2}}{\sqrt{d x^{2} + c}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(sqrt(b*x^2 + a)*x^2/sqrt(d*x^2 + c),x, algorithm="giac")

[Out]

integrate(sqrt(b*x^2 + a)*x^2/sqrt(d*x^2 + c), x)